pp108 : ondblclick Event

ondblclick Event


This event is executed when a row is double-clicked.

Syntax

Inline HTML
<div cordysType="wcp.library.ui.XGrid" id="xgridId" ondblclick="handler()">
...
</div>
Event property xgridId.ondblclick = handler


Event Information

To invoke Double-click a row in the XGrid.
Default Action Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property Description
businessObject XML node of the business object associated with the row.
columnId Read-only. String that refers to the identifier of the column of the cell, for which the event is executed.
data XML node that is the basis for the content in the XGrid.
dataNode XML node associated with the cell that was double-clicked.
getCells() Returns an array of cell objects.
getIndex() Returns the row index, where the index of the first row is '1'.
row HTML node of the non-frozen part of the row.
rowData XML node of the data in a row.
rowFreezeColumn HTML node of the frozen part of the row (if available).
srcElement Refers to the HTML node of the cell that caused the event to be executed.
value Refers to the value of the cell.


Remarks


Theondblclickevent is invoked after theonrowselectevent. Double-clicking a row also means that the row is single clicked, which means theonrowselectevent is always invoked before theondblclickevent.

This event does not result in the same action when you double-click a drop-down column. The first click adds and opens the drop-down list. The second click closes the drop-down list.

See Also


xgrid, onrowcheck, onrowselect